package com.zigong.app.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ruihang.generalibrary.ui.adapter.BaseHolderAbsAdapter;
import com.ruihang.generalibrary.ui.util.OnItemInternalClick;
import com.zigong.app.R;
import com.zigong.app.beans.SearchKeyWords;
import com.zigong.app.ui.adapter.holder.SearchHotHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/9/10 0010.
 */

public class SearchHotAdapter extends BaseHolderAbsAdapter<SearchKeyWords, SearchHotHolder> {
    public SearchHotAdapter(Context context, List<SearchKeyWords> list) {
        super(context, list);
    }

    @Override
    public SearchHotHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_search_order, parent, false);
        SearchHotHolder holder = new SearchHotHolder(context, view);
        holder.setInternalClick(this);
        return holder;
    }

    @Override
    public SearchHotAdapter setItemInternalClick(OnItemInternalClick itemInternalClick) {
        super.setItemInternalClick(itemInternalClick);
        return this;
    }
}
